<?php
	// No direct access
	defined('_JEXEC') or die;
    jimport( 'joomla.application.component.view');
    class VolunteerViewAddsearchkeyword extends JView
    {
		function display($tpl = null)
		{
			$model = $this->getModel('volunteer'); //get default model (volunteer)
			
			$this->assignRef( 'results', $model->searchKeyword(JRequest::getVar('searchkeyword')) );
			$this->assignRef( 'searchkeyword', JRequest::getVar('searchkeyword') );
			// $this->assignRef( 'industries', $model->getIndustries() );
									
			$app = JFactory::getApplication();
			$data = $app->getUserState('volunteer.addsearchkeyword.form.data');
			$this->assignRef( 'newkeyword', $data['newkeyword']);
		
			parent::display($tpl); //display defaul template
		}
    }